<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 段鑫涛
  Date: 2025/3/30
  Time: 23:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <jsp:include page="resources.jsp"></jsp:include>
</head>
<body>
<div id="dcWrap">
    <jsp:include page="header.jsp"></jsp:include>
    <!-- dcHead 结束 -->
    <jsp:include page="left.jsp"></jsp:include>
    <div id="dcMain">
        <!-- 当前位置 -->
        <div id="urHere">快递管理系统<b>></b><strong>快递列表</strong></div>
        <div class="mainBox"
             style="height:auto!important;height:550px;min-height:550px;">
            <h3><a href="/delivery/getCompanyList"
                   class="actionBtn add">添加快递</a>快递列表</h3>

            <div id="list">

                <table width="100%" border="0" cellpadding="8"
                       cellspacing="0" class="tableBasic">
                    <tr>
                        <th width="40" align="center">编号</th>
                        <th width="80" align="center">物流公司</th>
                        <th width="80" align="center">收件人</th>
                        <th width="80" align="center">手机号</th>
                        <th width="80" align="center">送达日期</th>
                        <th align="center">地址</th>
                        <th width="80" align="center">签收状态</th>
                        <th width="80" align="center">操作</th>
                    </tr>
                    <c:forEach items="${requestScope.deliveryList}" var="delivery">
                        <tr>
                            <td align="center">${delivery.id}</td>
                            <td align="center">${delivery.company.companyName}</td>
                            <td align="center">${delivery.deliveryName}</td>
                            <td align="center">${delivery.phone}</td>
                            <td align="center">${delivery.sendTime}</td>
                            <td align="center">${delivery.address}</td>
                            <td align="center">
                                    ${delivery.state == 1 ? "已签收" : "未签收"}
                            </td>
                            <td align="center">
                                <a href="/delivery/getDeliveryEdit?id=${delivery.id}">编辑</a>
                                |
                                <a href="/delivery/deleteDelivery?id=${delivery.id}">删除</a>
                            </td>
                        </tr>
                    </c:forEach>
                </table>

            </div>
            <div class="clear"></div>
            <div class="pager"><a href="article.php?page=1">第一页</a>
                <a href="article.php?page=1"> 上一页</a> <a
                        href="article.php?page=1">下一页</a> <a
                        href="article.php?page=1">最末页</a></div>
        </div>
    </div>
    <div class="clear"></div>
    <div id="dcFooter">
        <div id="footer">
            <div class="line"></div>
            <ul>
                版权所有 © 2024-2025 尚硅谷教育，并保留所有权利。
            </ul>
        </div>
    </div><!-- dcFooter 结束 -->
    <div class="clear"></div>
</div>
<script type="text/javascript">

    onload = function () {
        document.forms['action'].reset();
    }

    function douAction() {
        var frm = document.forms['action'];

        frm.elements['new_cat_id'].style.display = frm.elements['action'].value == 'category_move' ? '' : 'none';
    }

</script>
</body>
</html>